<select id="cboSubcategoria" name="subcategory" style="width: 162px;" onchange="selectSubcategory(this.value)">
    <option value="">Subcategor&iacute;a:</option>
    <?php foreach($subcategories as $subcategory){ ?>
    <option value="<?php echo $subcategory->getId() ?>">
        <?php echo $subcategory->getDescription() ?></option>
    <?php } ?>
</select>